const BundleAnalyzerPlugin =
  require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
module.exports = {
  productionSourceMap: false,
  publicPath: "./",
  configureWebpack: {
    externals: {
      vue: "Vue",
      "vue-router": "VueRouter",
      vuex: "Vuex",
      axios: "axios",
      "element-ui": "ELEMENT",
    },
    plugins: [
      new BundleAnalyzerPlugin({
        analyzerPort: 8888,
        openAnalyzer: false,
      }),
    ],
  },
  devServer: {
    proxy: {
      "/webapi": {
        target: "https://www.ioffershow.com",
        changeOrigin: true,
      },
    },
  },
};
